package com.company;

import hownet2.background.BlankUtils;
import hownet2.sememe.LiuqunSememeParser;

import java.io.IOException;

/**
 * Created by Administrator on 2016.8.22.
 */
public class Background {
    public static int getDepth(String id){
        String number=id.replace("-","");
        return number.length();
    }

    public static int getBrotherNumber(String id) throws IOException {
        int z=0;

        LiuqunSememeParser liuqunSememeParser=new LiuqunSememeParser();

        int brotherNumber=0;

        for (int i=1;liuqunSememeParser.idExist(id.substring(0,id.length()-1)+i);i++){
            brotherNumber++;
        }

        return brotherNumber;
    }
}
